import request from "@/api/myRequest.js"

// 查看退单列表
function findReturnApply(start,limit,data){
	 return request({
		 url:`/lejuAdmin/orderReturn/findReturnApply/${start}/${limit}`,
		 method:"POST",
		 data
		
		 
	 })
 }
 // 退单明细
 function orderReturn(id){
 	 return request({
 		 url:`/lejuAdmin/orderReturn/${id}`,
 		 method:"GET",
 		
 		
 		 
 	 })
  }
  // 确认收货
  function receiveProduct(data,id){
  	 return request({
  		 url:`/lejuAdmin/orderReturn/receiveProduct/${id}`,
  		 method:"POST",
  		data
  		
  		 
  	 })
   }
   //同意退货
   function agreeApply(data,id){
   	 return request({
   		 url:`/lejuAdmin/orderReturn/agreeApply/${id}`,
   		 method:"POST",
   		data
   		
   		 
   	 })
    }
	// 拒绝退货
	function rejectApply(data,id){
		 return request({
			 url:`/lejuAdmin/orderReturn/rejectApply/${id}`,
			 method:"POST",
			data
			
			 
		 })
	 }
 export{
	 findReturnApply,
	 orderReturn,
	 receiveProduct,
	 agreeApply,
	 rejectApply
 }